import Layout from '@/layout'

const AdministrationRouter = {

  path: '/Administration',
  component: Layout,
  redirect: '/Administration/adminmenu1/orderud',
  name: 'Administration',
  meta: {
    title: 'Administration',
    icon: 'nested'
  },

  children: [
    // 订单
    {
      path: 'adminmenu1',
      component: () => import('@/views/administration/order/index'), // Parent router-view
      name: 'adminmenu1',
      meta: { title: 'adminmenu1' },

      redirect: '/Administration/adminmenu1/orderud',
      children: [
        {
          path: 'orderud',
          component: () => import('@/views/administration/order/UdOrder/index'),
          name: 'orderud',
          meta: { title: 'orderud' }
        },

        {
          path: 'orderuub',
          component: () => import('@/views/administration/order/UubOrder/index'),
          name: 'orderuub',
          meta: { title: 'orderuub' }
        }
      ]
    },
    // 用户
    {
      path: 'adminmenu2',
      name: 'adminmenu2',
      component: () => import('@/views/administration/order/index'), // Parent router-view
      meta: { title: 'adminmenu2' },
      redirect: '/Administration/adminmenu1/orderud',

      children: [
        {
          path: 'userAndDesign',
          component: () => import('@/views/administration/user/UserAndDesign'),
          name: 'userAndDesign',
          meta: { title: 'userAndDesign' }
        },
        {
          path: 'brand',
          component: () => import('@/views/administration/user/Brand'),
          name: 'brand',
          meta: { title: 'brand' }
        }
      ]
    },
    // 商品
    {
      path: 'adminmenu3',
      component: () => import('@/views/administration/goods/index'), // Parent router-view
      name: 'adminmenu3',
      meta: { title: 'adminmenu3' }
    },
    // 案例
    {
      path: 'adminmenu5',
      component: () => import('@/views/administration/case/index'), // Parent router-view
      name: 'adminmenu5',
      meta: { title: 'adminmenu5' }
    },
    // 分类
    {
      path: 'adminmenu4',
      component: () => import('@/views/administration/commondic/index'), // Parent router-view
      name: 'adminmenu4',
      meta: { title: 'adminmenu4' }
    },
    // 装修计算器
    {
      path: 'adminmenu6',
      component: () => import('@/views/administration/computer/index'), // Parent router-view
      name: 'adminmenu6',
      meta: { title: 'adminmenu6' }
    },
    // 认证
    {
      path: 'adminmenu7',
      component: () => import('@/views/administration/userauth/index'), // Parent router-view
      name: 'adminmenu7',
      meta: { title: 'adminmenu7' }
    }
  ]

}

export default AdministrationRouter
